package com.sjz.bookmark.tree;

import javax.swing.*;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class BookmarkTreeController {
    private JTree bookmarkTree;
    private BookmarkManager bookmarkManager;
    
    public BookmarkTreeController(JTree bookmarkTree, BookmarkManager bookmarkManager) {
        this.bookmarkTree = bookmarkTree;
        this.bookmarkManager = bookmarkManager;
        setupListeners();
    }
    
    private void setupListeners() {
        bookmarkTree.addMouseListener(new BookmarkTreeMouseListener());
        bookmarkTree.addTreeSelectionListener(new BookmarkTreeSelectionListener());
    }
    
    // 内部监听器类
    private class BookmarkTreeMouseListener extends MouseAdapter {
        @Override
        public void mouseClicked(MouseEvent e) {
            // 处理鼠标点击事件
        }
    }
}